use gardens::server;
use log::{info, warn};

#[tokio::main]
async fn main() {
    match server::init().await {
        Ok(_) => {
            info!("
    -----------------------
    COMPONENT INIT COMPLETE
    -----------------------
    ");
        }
        Err(e) => {
            warn!("
    !!!!!!!!!!!!!!!!!!!!
    COMPONENT INIT ERROR
    !!!!!!!!!!!!!!!!!!!!
    ");
            warn! {"{}",e}
            ;
            return;
        }
    };
    loop {}
    // gardens::controller::mount(rocket::ignite()).launch();
}